import http from "../../utils/requestAI";
// import type { addPrems } from "./employee_type";
import {type ExampleGenerate,type Data } from "./bed_type";



//列表
export const getBed=(params?:Data)=>{

  return  http.get<ExampleGenerate>('/beds/list',params);

}

//删除
export const delBed=(id:number)=>{

    console.log('删除1111',id);

    return  http.delete(`/beds/delete/${id}`);
  
}

export const delBedAll = (ids: number[]) => {
  console.log('批量删除执行', ids);
  return http.post(`/beds/deleteAll`,ids);
}
// export const addemployee = (data: addPrems) => {
//   return http.post(`/purchase/add`, data);
// }